package unitTests;

import static org.junit.Assert.*;
import model.courtier.DAOClient;
import model.donnee.Client;

import org.junit.Before;
import org.junit.Test;

public class ClientTest {

	Client c = new Client();
	
	@Before
	public void setUp() throws Exception {
		c = DAOClient.getClient("StacyBJohnson76@gmail.com", "ohm0Bohfobe");
	}

	@Test
	public void testClientName() {
		assertEquals(c.getIdclient(),957614);
	}
	
	@Test
	public void testClientMD5(){
		System.out.print(c.getLogin().getMotDePasseEncrypte());
		assertEquals(c.getLogin().getMotDePasseEncrypte().compareToIgnoreCase("87e49695f0d0aa66fe46a6f58e34782e"),0);
	}

}
